//
//  SYNextTableViewCell.m
//  TermOfSectionB
//
//  Created by dlios on 15/12/1.
//  Copyright © 2015年 韩震明. All rights reserved.
//

#import "SYNextTableViewCell.h"

@implementation SYNextTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.leftImage = [[UIImageView alloc] init];
    self.leftImage.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:self.leftImage];
    
    self.leftAddLabel = [[UILabel alloc] init];
    self.leftAddLabel.backgroundColor = [UIColor whiteColor];
    self.leftAddLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.leftAddLabel];
    
    self.leftProductLabel = [[UILabel alloc] init];
    self.leftProductLabel.backgroundColor = [UIColor whiteColor];
    self.leftProductLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.leftProductLabel];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.leftImage.frame = CGRectMake(10, 5, 157, 150);
    
    self.leftAddLabel.frame = CGRectMake(170, 15, 200, 50);
    
    self.leftProductLabel.frame = CGRectMake(185, 80, 187, 30);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
